/**
 * 
 */
package core.internal;

import java.util.ArrayList;

import util.Logger;

/**
 * @author cipri
 *
 */
public class SystemDirectory extends SystemItem
{
    private ArrayList<SystemItem> _references;
    
    public SystemDirectory(String name)
    {
        super(name);
        _references = new ArrayList<SystemItem>();
    }
    
    //Composite common operations
    
    public Boolean add(SystemItem item)
    {
        Logger.logln("adding to " + getName() + ": " + item.getName());
        return _references.add(item);
    }
    
    public Boolean remove(SystemItem item)
    {
        return _references.remove(item);
    }
    
    public ArrayList<SystemItem> getChilds()
    {
        return _references;
    }
    
    public Boolean isDirectory()
    {
        return true;
    }

}
